package ils.util;

/**
 * Created with IntelliJ IDEA.
 * User: rejeevd
 * Date: 21/09/12
 * Time: 21:59
 * To change this template use File | Settings | File Templates.
 */
public class HibernateSession implements AutoCloseable
{
    private String sessionKey;

    public HibernateSession(String key){this.sessionKey = key;}

    @Override
    public void close() {
        new HibernateSessionManager().complete(sessionKey);
    }
}
